<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
  <!-- 输出100-200之间的所有质数 -->
  <script>
  var sum=0;
for(var i=100;i<=200;i++){
for(var j=2,m=1;j<=Math.sqrt(i);j++){
if(i%j==0){
m=0;
break;
}
}
if(m==1){
console.log(i);
sum+=i;
}
}



  </script>
</body>
</html>